const express = require("express");
const router = express.Router();
const useApiRes = require('../common/apiRes')
const useRetailReportService = require("../service/retailReport.service")
// 获取零售报表数据
router.post("/list", async (req, res) => {
    try {
        const result = await useRetailReportService.page(req.body)
        return useApiRes.success(res, result)
    } catch (err) {
        return useApiRes.fail(res, err.message)
    }
});
module.exports = router;